home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / mc51bugs / q33375 < prev    next >
Text File  |  1988-08-08  |  1KB  |  46 lines

  1. Q33375 Warning C4060: Conversion of Long Address to Short Address
  2. C Compiler
  3. 5.10   | 5.10
  4. MS-DOS | OS/2
  5.  
  6. Summary:
  7.    The warning C4060 occurs when the default optimization is used with
  8. SS != DS in large model. The command line is as follows:
  9.  
  10.    cl -c -Alnw file.c
  11.  
  12.    The following warning is incorrectly generated:
  13.  
  14.    warning C4060: conversion of long address to short address
  15.  
  16.    Microsoft has confirmed this to be a problem in Version 5.10. We
  17. are researching this problem and will post new information as it
  18. becomes available.
  19.    This warning can be ignored in this situation. The error is not
  20. generated when optimization is disabled (/Od).
  21.  
  22.  
  23. More Information:
  24.    The following code illustrates the problem:
  25.  
  26. void main(void);
  27. void main(void)
  28. {
  29. int  parmin[16];
  30. int  e[16];
  31. int i;
  32.       for (i=0;i<16;i++)
  33.       {
  34.       if (e[i] == 0)
  35.          {
  36.          if (parmin[i] == 0)
  37.             {
  38.             e[i] = 1;
  39.             }
  40.          }
  41.       }
  42. }
  43.  
  44. Keywords:  buglist5.10
  45. Updated  88/08/09 05:59
  46.